/*
 * @description:
 * @Author: FengKongLi
 * @Date: 2022-07-20 17:47:57
 * @LastEditors: FengKongLi
 * @LastEditTime: 2022-10-19 10:41:48
 */
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: Home,
  },
  {
    path: "/Polyline",
    name: "Polyline",
    component: () => import("../views/Polyline.vue"),
  },
  {
    path: "/Polygon",
    name: "Polygon",
    component: () => import("../views/Polygon.vue"),
  },
  {
    path: "/Popup",
    name: "Popup",
    component: () => import("../views/Popup.vue"),
  },
  {
    path: "/3DTilesFeaturePicking",
    name: "3DTilesFeaturePicking",
    component: () => import("../views/3DTilesFeaturePicking.vue"),
  },
  {
    path: "/Add3DTilesData",
    name: "Add3DTilesData",
    component: () => import("../views/Add3DTilesData.vue"),
  },
  {
    path: "/AddGeojson",
    name: "AddGeojson",
    component: () => import("../views/AddGeojson.vue"),
  },
  {
    path: "/BaseDrawing",
    name: "BaseDrawing",
    component: () => import("../views/BaseDrawing.vue"),
  },
  {
    path: "/PropertyQuery",
    name: "PropertyQuery",
    component: () => import("../views/PropertyQuery.vue"),
  },
  {
    path: "/DataQuery",
    name: "DataQuery",
    component: () => import("../views/DataQuery.vue"),
  },
  {
    path: "/Measure",
    name: "Measure",
    component: () => import("../views/Measure.vue"),
  },
  {
    path: "/SplitScreenDisplay",
    name: "SplitScreenDisplay",
    component: () => import("../views/SplitScreenDisplay.vue"),
  },
  {
    path: "/LayerSwipe",
    name: "LayerSwipe",
    component: () => import("../views/LayerSwipe.vue"),
  },
  {
    path: "/VisibilityAnalysis",
    name: "VisibilityAnalysis",
    component: () => import("../views/VisibilityAnalysis.vue"),
  },
  {
    path: "/SkylineAnalysis",
    name: "SkylineAnalysis",
    component: () => import("../views/SkylineAnalysis.vue"),
  },
];

const router = new VueRouter({
  // mode: 'history',
  mode: "hash",
  base: process.env.BASE_URL,
  routes,
});

export default router;
